/*
 * @Description: 登录API
 * @Author: zhihong deng
 * @Date: 2021-07-28 21:27:11
 * @LastEditors: zhihong deng
 * @LastEditTime: 2021-07-28 22:00:40
 */
import axios from 'axios'
const qs = require('qs')
export function login(userInfo){
  let url = ' http://localhost:8888/api/private/v1/login'
  
  let userInfoString = qs.stringify(userInfo)
  console.log('userInfoString',userInfoString);
  return axios.post(url,userInfoString,{
    headers:{
      "Content-Type":"application/x-www-form-urlencoded"
    }
  })
}